﻿Imports System.Data.SqlClient

Public Class TonKhoDAO
    Public Shared Function LoadHangTonKho() As DataTable
        Return CKetNoi.LoadBang("usp_HangTonKho")
    End Function

    Public Shared Function LoadBangKhoHangTheoMa(maKhoHang As String) As DataTable
        Dim tenStore As String = "usp_HangTonKhoTheoMaKho"
        Dim dsThamSo As New List(Of SqlParameter)
        dsThamSo.Add(New SqlParameter("@MaKhoHang", maKhoHang))
        Return CKetNoi.ThucThiStoreCoThamSo(tenStore, dsThamSo)
    End Function
End Class
